package com.homework.ch07.zoo;

public class Dog extends Animal{
    private int age;

    public Dog(String name, int age) {
        super(name);
        this.age = age;
    }

    @Override
    public void makeSound() {
        System.out.println("狗发出汪汪叫声");
    }

    @Override
    public void move() {
        System.out.println("狗在四腿奔跑");
    }

    public int getAge() {
        return age;
    }
}
